# -*- coding: utf-8 -*-

from PyQt4 import QtCore, QtGui

from images import images_rc

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s


class UiVnaPlotter(object):

    def __init__(self):
        """
        
        """
        self.iconImage()


    def iconImage(self):
        """
            Carrega os icones dos botoes da tela principal.
        """
        self.pushButtonCopiarIcon = QtGui.QIcon(":/vna-icon/copiar.png")
        self.pushButtonConectarIcon = QtGui.QIcon(":/vna-icon/connect.png")
        self.pushButtonConfigIcon = QtGui.QIcon(":/vna-icon/configure.png")
        self.pushButtonHelpIcon = QtGui.QIcon(":/vna-icon/help.png")


    def setupUi(self, MainWindow):
        """
        
        """
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(416, 646)
        
        MainWindow.setWindowTitle(
                                  QtGui.QApplication.translate(
                                  "MainWindow",
                                  "TSM - VNA PLOTTER",
                                  None,
                                  QtGui.QApplication.UnicodeUTF8))
                                  
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        
        self.pushButtonCopiar = QtGui.QPushButton(self.centralwidget)
        self.pushButtonCopiar.setGeometry(QtCore.QRect(150, 470, 110, 71))
        self.pushButtonCopiar.setObjectName(_fromUtf8("pushButtonCopiar"))
        self.pushButtonCopiar.setIconSize(QtCore.QSize(58, 58))
        self.pushButtonCopiar.setIcon(QtGui.QIcon(self.pushButtonCopiarIcon))
        
        self.progressBar = QtGui.QProgressBar(self.centralwidget)
        self.progressBar.setGeometry(QtCore.QRect(60, 580, 290, 25))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(100, 70, 200, 21))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.label.setText(
                           QtGui.QApplication.translate(
                           "MainWindow",
                           "TSM VNA PLOTTER",
                           None,
                           QtGui.QApplication.UnicodeUTF8))
        
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(50, 200, 56, 15))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(10, 50, 391, 20))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setGeometry(QtCore.QRect(10, 90, 391, 20))
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        
        self.line_3 = QtGui.QFrame(self.centralwidget)
        self.line_3.setGeometry(QtCore.QRect(10, 550, 391, 20))
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(40, 120, 331, 241))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(40, 20, 241, 19))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setText(
                             QtGui.QApplication.translate(
                             "MainWindow",
                             "Selecione o Modelo da Antena:",
                             None,
                             QtGui.QApplication.UnicodeUTF8))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        
        self.treeWidget = QtGui.QTreeWidget(self.groupBox)
        self.treeWidget.setGeometry(QtCore.QRect(40, 50, 241, 176))
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.headerItem().setText(
                                             0,
                                             QtGui.QApplication.translate(
                                             "MainWindow",
                                             "Produtos",
                                             None,
                                             QtGui.QApplication.UnicodeUTF8))
        
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setGeometry(QtCore.QRect(40, 370, 331, 81))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        
        self.lineEditOrdemProd = QtGui.QLineEdit(self.groupBox_2)
        self.lineEditOrdemProd.setGeometry(QtCore.QRect(180, 30, 101, 23))
        self.lineEditOrdemProd.setObjectName(_fromUtf8("lineEditOrdemProd"))
        
        self.label_5 = QtGui.QLabel(self.groupBox_2)
        self.label_5.setGeometry(QtCore.QRect(10, 30, 163, 23))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_5.setText(
                             QtGui.QApplication.translate(
                             "MainWindow",
                             "Ordem de Produção:",
                             None,
                             QtGui.QApplication.UnicodeUTF8))
        
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(50, 20, 57, 15))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.label_4.setText(
                             QtGui.QApplication.translate(
                             "MainWindow",
                             "Conectar",
                             None,
                             QtGui.QApplication.UnicodeUTF8))
        
        self.line_4 = QtGui.QFrame(self.centralwidget)
        self.line_4.setGeometry(QtCore.QRect(110, 10, 20, 41))
        self.line_4.setFrameShape(QtGui.QFrame.VLine)
        self.line_4.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_4.setObjectName(_fromUtf8("line_4"))
        
        self.label_6 = QtGui.QLabel(self.centralwidget)
        self.label_6.setGeometry(QtCore.QRect(170, 20, 91, 16))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.label_6.setText(
                             QtGui.QApplication.translate(
                             "MainWindow",
                             "Configurações",
                             None,
                             QtGui.QApplication.UnicodeUTF8))
        
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setGeometry(QtCore.QRect(260, 10, 20, 41))
        self.line_5.setFrameShape(QtGui.QFrame.VLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        
        self.label_7 = QtGui.QLabel(self.centralwidget)
        self.label_7.setGeometry(QtCore.QRect(330, 20, 41, 16))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.label_7.setText(
                             QtGui.QApplication.translate(
                             "MainWindow", 
                             "Ajuda",
                             None,
                             QtGui.QApplication.UnicodeUTF8))
        
        self.pushButtonConectar = QtGui.QPushButton(self.centralwidget)
        self.pushButtonConectar.setGeometry(QtCore.QRect(10, 10, 31, 31))
        self.pushButtonConectar.setObjectName(_fromUtf8("pushButtonConectar"))
        self.pushButtonConectar.setIconSize(QtCore.QSize(16, 16))
        self.pushButtonConectar.setIcon(
                                        QtGui.QIcon(
                                        self.pushButtonConectarIcon))
        
        self.pushButtonConfig = QtGui.QPushButton(self.centralwidget)
        self.pushButtonConfig.setGeometry(QtCore.QRect(130, 10, 31, 31))
        self.pushButtonConfig.setObjectName(_fromUtf8("pushButtonConfig"))
        self.pushButtonConfig.setIconSize(QtCore.QSize(16, 16))
        self.pushButtonConfig.setIcon(
                                      QtGui.QIcon(
                                      self.pushButtonConfigIcon))
        
        self.pushButtonHelp = QtGui.QPushButton(self.centralwidget)
        self.pushButtonHelp.setGeometry(QtCore.QRect(290, 10, 31, 31))
        self.pushButtonHelp.setObjectName(_fromUtf8("pushButtonHelp"))
        self.pushButtonHelp.setIconSize(QtCore.QSize(16, 16))
        self.pushButtonHelp.setIcon(
                                    QtGui.QIcon(
                                    self.pushButtonHelpIcon))
        
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.lineEditOrdemProd, self.pushButtonCopiar)
        
        self.uiVna = MainWindow



    def retranslateUi(self, MainWindow):
        """
        
        """
        __sortingEnabled = self.treeWidget.isSortingEnabled()
        self.treeWidget.setSortingEnabled(False)
        self.treeWidget.setSortingEnabled(__sortingEnabled)
        
        self.pushButtonCopiar.setToolTip(
                                        QtGui.QApplication.translate(
                                        "MainWindow",
                                        "Clique Para Copiar",
                                        None,
                                        QtGui.QApplication.UnicodeUTF8))
        self.pushButtonConectar.setToolTip(
                                            QtGui.QApplication.translate(
                                            "MainWindow",
                                            "Clique Para Conectar ao Network",
                                            None,
                                            QtGui.QApplication.UnicodeUTF8))
        self.pushButtonConfig.setToolTip(
                                        QtGui.QApplication.translate(
                                        "MainWindow",
                                        "Clique Para Editar as Configuracoes",
                                        None,
                                        QtGui.QApplication.UnicodeUTF8))
        self.pushButtonHelp.setToolTip(
                                        QtGui.QApplication.translate(
                                        "MainWindow",
                                        "Clique Para Obter Ajuda e Dicas",
                                        None,
                                        QtGui.QApplication.UnicodeUTF8))
